<?php
  //Gennesis Software Manual - Page 5

  $pdf->AddPage();
  $pdf->Bookmark('Table of Contents');

  //$pdf->Image('./Genesis/Gen-soft/Gsm-v.png',0,0,210 ,297);
  //add_raster($pdf);

  $pdf->SetTextColor(0,0,0);

  $text_space = 4.4;



  $pdf->SetFont('Arial','B',12);
  $pdf->CenterText(0,32,'TABLE OF CONTENTS');

  $pdf->SetFont('Arial','B',10);
  toc_entry($pdf,0,40,'I.','MEMORY MAP',1);
    toc_entry($pdf,1,50,'A.','Mega Drive 16 Bit Mode',1);

      $text_start = 58;
      toc_entry($pdf,2,$text_start + ($text_space *  0),'1.','68K MEMORY MAP',1);
      toc_entry($pdf,2,$text_start + ($text_space *  1),'2.','Z80 MEMORY MAP',2);
      toc_entry($pdf,2,$text_start + ($text_space *  2),'3.','68000 ACCESS TO Z80 MEMORY',2);
      toc_entry($pdf,2,$text_start + ($text_space *  3),'4.','I/O AREA',3);
      toc_entry($pdf,2,$text_start + ($text_space *  4),'5.','CONTROL AREA',3);
      toc_entry($pdf,2,$text_start + ($text_space *  5),'6.','VDP AREA',4);
  
  toc_entry($pdf,0,90,'II.','VDP 315-5313',5);
    toc_entry($pdf,1,98,'A.','TERMINOLOGY',6);
    toc_entry($pdf,1,107,'B.','DISPLAY SPECIFICATION',6);
    toc_entry($pdf,1,116,'C.','VDP STRUCTURE',8);
  
      $text_start = 121;
      toc_entry($pdf,2,$text_start + ($text_space *  0),'1.','CTRL',8);
      toc_entry($pdf,2,$text_start + ($text_space *  1),'2.','VRAM',8);
      toc_entry($pdf,2,$text_start + ($text_space *  2),'3.','CRAM',8);
      toc_entry($pdf,2,$text_start + ($text_space *  3),'4.','VSRAM',8);
      toc_entry($pdf,2,$text_start + ($text_space *  4),'5.','DMA',8);
  
    toc_entry($pdf,1,148,'D.','INTERRUPT',9);
  
      $text_start = 153;
      toc_entry($pdf,2,$text_start + ($text_space *  0),'1.','VERTICAL INTERRUPT (V-INT)',9);
      toc_entry($pdf,2,$text_start + ($text_space *  1),'2.','HORIZONTAL INTERRUPT (H-INT)',9);
      toc_entry($pdf,2,$text_start + ($text_space *  2),'3.','EXTERNAL INTERRUPT (EX-INT)',10);
  
    toc_entry($pdf,1,170,'E.','VDP PORT',10);
  
      $text_start = 175;
      toc_entry($pdf,2,$text_start + ($text_space *  0),'1.','$ C 0 0 0 0 0 (DATA PORT)',10);
      toc_entry($pdf,2,$text_start + ($text_space *  1),'2.','$ C 0 0 0 0 4 (CONTROL PORT)',11);
      toc_entry($pdf,2,$text_start + ($text_space *  2),'3.','$ C 0 0 0 0 8 (HV COUNTER)',12);


    toc_entry($pdf,1,194,'F.','VDP REGISTER',13);
  
      $text_start = 199;
      toc_entry($pdf,2,$text_start + ($text_space *  0),'1.' ,'MODE SET REGISTER NO. 1',13);
      toc_entry($pdf,2,$text_start + ($text_space *  1),'2.' ,'MODE SET REGISTER NO. 2',13);
      toc_entry($pdf,2,$text_start + ($text_space *  2),'3.' ,'PATTERN NAME TABLE BASE ADDRESS FOR SCROLL A',13);
      toc_entry($pdf,2,$text_start + ($text_space *  3),'4.' ,'PATTERN NAME TABLE BASE ADDRESS FOR WINDOW',13);
      toc_entry($pdf,2,$text_start + ($text_space *  4),'5.' ,'PATTERN NAME TABLE BASE ADDRESS FOR SCROLL B',14);
      toc_entry($pdf,2,$text_start + ($text_space *  5),'6.' ,'SPRITE ATTRIBUTE TABLE BASE ADDRESS',14);
      toc_entry($pdf,2,$text_start + ($text_space *  6),'7.' ,'BACKGROUND COLOR',14);
      toc_entry($pdf,2,$text_start + ($text_space *  7),'8.' ,'H INTERRUPT REGISTER',14);
      toc_entry($pdf,2,$text_start + ($text_space *  8),'9.' ,'MODE SET REGISTER NO. 3',15);
      toc_entry($pdf,2,$text_start + ($text_space *  9),'10.','MODE SET REGISTER NO. 4',15);
      toc_entry($pdf,2,$text_start + ($text_space * 10),'11.','H SCROLL DATA TABLE BASE ADDRESS',16);
      toc_entry($pdf,2,$text_start + ($text_space * 11),'12.','AUTO INCREMENT DATA',16);
      toc_entry($pdf,2,$text_start + ($text_space * 12),'13.','SCROLL SIZE',16);
      toc_entry($pdf,2,$text_start + ($text_space * 13),'14.','WINDOW H POSITION',16);
      toc_entry($pdf,2,$text_start + ($text_space * 14),'15.','WINDOW V POSITION',17);
      toc_entry($pdf,2,$text_start + ($text_space * 15),'16.','DMA LENGTH CONTER LOW',17);
      toc_entry($pdf,2,$text_start + ($text_space * 16),'17.','DMA LENGTH COUNTER HIGH',17);
  
  add_footer($pdf,'02/21/92','V');


?>
